package com.cskaoyan.mall.pay.alipay.service;


import com.cskaoyan.mall.pay.alipay.model.builder.*;
import com.cskaoyan.mall.pay.alipay.model.result.*;

/**
 * Created by liuyangkly on 15/7/29.
 */
public interface AlipayTradeService {

    // 当面付2.0流程支付
    public AlipayF2FPayResult tradePay(AlipayTradePayRequestBuilder builder);

    // 当面付2.0消费查询
    public AlipayF2FQueryResult queryTradeResult(AlipayTradeQueryRequestBuilder builder);

    // 当面付2.0消费退款
    public AlipayF2FRefundResult tradeRefund(AlipayTradeRefundRequestBuilder builder);

    // 当面付2.0预下单(生成二维码)
    public AlipayF2FPrecreateResult tradePrecreate(AlipayTradePrecreateRequestBuilder builder);

    // 当面付2.0取消交易
    default AlipayF2FCancelResult payCancel(AlipayTradeCancelRequestBuilder builder) {
        return null;
    }
}
